import request from '@/utils/request'
import qs from 'qs'
export function userList(data) {

  return request({
    url: '/api/user/list',
    method: 'post',
    data:data
  })
}


export function  sumbitUser(data){
   return request({
     url: '/api/user/save',
     method: 'post',
     data:data
  })
}

export function authRole(data){
  return request({
    url: '/api/user/auth_user',
    method: 'post',
    data:qs.stringify(data),
    headers:{"Content-Type":"application/x-www-form-urlencoded"}
})
}

export function delUser(data){
  return request({
    url: '/api/user/del',
    method: 'post',
    data:qs.stringify(data),
    headers:{"Content-Type":"application/x-www-form-urlencoded"}
  })
}

export function changeStatus(data){
  return request({
    url: '/api/user/change_status',
    method: 'post',
    data:qs.stringify(data),
    headers:{"Content-Type":"application/x-www-form-urlencoded"}
  })
}
